﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using Windows.UI.Xaml;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using System.ComponentModel;

namespace Studio77.Timer.Models
{
    public class TimerItemViewModel : INotifyPropertyChanged
    {
        private string tipName;
        public String TipName
        {
            get
            {
                return tipName;
            }
            set
            {
                tipName = value;
            }
        }


        private SolidColorBrush tipBrush;
        public SolidColorBrush TipBrush
        {
            get { return tipBrush; }
            set { tipBrush = value; }
        }

        private SolidColorBrush txtBrush;
        public SolidColorBrush TxtBrush
        {
            get { return txtBrush; }
            set
            {
                txtBrush = value;
                NotifyPropertyChanged("TxtBrush");
            }
        }

        private string leftTime;
        /// <summary>
        /// 00：00：00
        /// </summary>
        public string LeftTime
        {
            get { return leftTime; }
            set
            {
                leftTime = value;
                NotifyPropertyChanged("LeftTime");
            }
        }

        public bool IsStoped { get; set; }

        public int LeftSeconds { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(string propName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
            }
        }
    }

    public class TimerItemCollection : ObservableCollection<TimerItemViewModel>
    {
    }
}
